package com.bl.student.dao.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Created by liangweikang on 20/8/1.
 */

@Entity
@Data
@Table(name = "USER_SHARE")
@ApiModel(value = "UserShareEntity", description = "分享记录")
@DynamicInsert
@DynamicUpdate
public class UserShareEntity {

    @Id
    @ApiModelProperty(value = "id")
    private int id;

    @ApiModelProperty(value = "用户id")
    @Column(name = "user_id")
    private int userId;

    @ApiModelProperty(value = "记录id")
    @Column(name = "record_id")
    private String recordId;

    @ApiModelProperty(value = "记录id")
    @Column(name = "user_record_id")
    private int userRecordId;

    @ApiModelProperty(value = "创建时间")
    @Column(name = "create_time")
    private long createTime;

    @ApiModelProperty(value = "记录id")
    @Column(name = "user_name")
    private String userName;

    @ApiModelProperty(value = "精选")
    private int selected;

    @ApiModelProperty(value = "title")
    private String title;

    @ApiModelProperty(value = "type")
    private String type;

}
